package com.example.sfm.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@Schema(name = "学生档案视图对象", description = "用于表示学生档案信息的视图对象")
public class StudentRecordsVo {
    @Schema(description = "学生档案的唯一标识ID")
    private Integer id;

    @Schema(description = "学生对应的用户ID")
    private Integer userId;

    @Schema(description = "学生的学号")
    private String studentNumber;

    @Schema(description = "学生的姓名")
    private String studentName;

    @Schema(description = "学生的性别")
    private String genderStr;

    @Schema(description = "学生性别的数字表示")
    private Integer gender;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Schema(description = "学生的出生日期，格式：yyyy-MM-dd")
    private LocalDate birthDate;

    @Schema(description = "学生的国籍")
    private String nationality;

    @Schema(description = "学生的政治面貌")
    private String politicalStatus;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Schema(description = "学生的入学日期，格式：yyyy-MM-dd")
    private LocalDate admissionDate;

    @Schema(description = "学生所属的学院")
    private String department;

    @Schema(description = "学生所学的专业")
    private String major;

    @Schema(description = "学生所在的班级")
    private String className;

    @Schema(description = "学生的平均绩点")
    private BigDecimal gpa;

    @Schema(description = "学生的学籍状态描述")
    private String statusStr;

    @Schema(description = "学生的家庭地址")
    private String address;

    @Schema(description = "学生监护人的姓名")
    private String guardianName;

    @Schema(description = "学生监护人的电话号码")
    private String guardianPhone;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "学生档案的创建时间，格式：yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @Schema(description = "学生所在班级的ID")
    private Integer classId;

    @Schema(description = "学生学籍状态的数字表示")
    private Integer status;
}